package com.asset.admin.system.syemenu.form;

/**
 * <p>
 * todo 描述
 * </p>
 *
 * @author 牧之
 * @date 2024/6/26 23:55
 */
public class QueryMenuForm {
    private Integer pageNum;
    private Integer pageSize;
    private Integer currentNum;
    private String menuName;
    private String menuType;     // 菜单类型，0：目录，1：菜单，2：按钮

    public void setCurrentNum() {
        if (pageNum != null && pageSize != null) {
            currentNum =  (pageNum - 1) * pageSize;
        }
    }


    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuType() {
        return menuType;
    }

    public void setMenuType(String menuType) {
        this.menuType = menuType;
    }
}
